package com.wxq.day0415.controller;

import com.wxq.day0415.pojo.Goods;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author wxq
 * @Date 2021/4/15
 **/
@Controller
public class FormatterController {

    @GetMapping("/goods/addGoods.do")
    public String myConverter(Goods goods, Model model) {
        model.addAttribute("goods", goods);
        return "redirect:/goods";
    }

    @GetMapping("/goods")
    public String myConverter1(Goods goods, Model model) {
        System.out.println(111);
        return null;

    }
}
